package com.stox.charting.ui.swing.presenter.delegate.painter.chart;

import java.awt.Color;
import java.awt.Graphics2D;

import com.stox.charting.ui.swing.model.Chart;
import com.stox.charting.ui.swing.model.ChartType;

public class BarChartPainter implements ChartPainter {

	@Override
	public ChartType getSupportedChartType() {
		return ChartType.HLC;
	}

	@Override
	public void paint(Graphics2D g, Chart<?> chart, int width, int height) {
		g.setColor(Color.white);	
		g.drawRect(chart.getX()+5, chart.getY()+5, chart.getWidth()-10, chart.getHeight()-10);
	}

}
